/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package de.hsmannheim.pepa.patientenportal.apanwep.model;

import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link messages_mparticipants}.
 * </p>
 *
 * @author Cedric Nana
 * @see messages_mparticipants
 * @generated
 */
public class messages_mparticipantsWrapper implements messages_mparticipants,
	ModelWrapper<messages_mparticipants> {
	public messages_mparticipantsWrapper(
		messages_mparticipants messages_mparticipants) {
		_messages_mparticipants = messages_mparticipants;
	}

	@Override
	public Class<?> getModelClass() {
		return messages_mparticipants.class;
	}

	@Override
	public String getModelClassName() {
		return messages_mparticipants.class.getName();
	}

	@Override
	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("messages_id", getMessages_id());
		attributes.put("messageparticipants_id", getMessageparticipants_id());

		return attributes;
	}

	@Override
	public void setModelAttributes(Map<String, Object> attributes) {
		Long messages_id = (Long)attributes.get("messages_id");

		if (messages_id != null) {
			setMessages_id(messages_id);
		}

		Long messageparticipants_id = (Long)attributes.get(
				"messageparticipants_id");

		if (messageparticipants_id != null) {
			setMessageparticipants_id(messageparticipants_id);
		}
	}

	/**
	* Returns the primary key of this messages_mparticipants.
	*
	* @return the primary key of this messages_mparticipants
	*/
	@Override
	public de.hsmannheim.pepa.patientenportal.apanwep.service.persistence.messages_mparticipantsPK getPrimaryKey() {
		return _messages_mparticipants.getPrimaryKey();
	}

	/**
	* Sets the primary key of this messages_mparticipants.
	*
	* @param primaryKey the primary key of this messages_mparticipants
	*/
	@Override
	public void setPrimaryKey(
		de.hsmannheim.pepa.patientenportal.apanwep.service.persistence.messages_mparticipantsPK primaryKey) {
		_messages_mparticipants.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the messages_id of this messages_mparticipants.
	*
	* @return the messages_id of this messages_mparticipants
	*/
	@Override
	public long getMessages_id() {
		return _messages_mparticipants.getMessages_id();
	}

	/**
	* Sets the messages_id of this messages_mparticipants.
	*
	* @param messages_id the messages_id of this messages_mparticipants
	*/
	@Override
	public void setMessages_id(long messages_id) {
		_messages_mparticipants.setMessages_id(messages_id);
	}

	/**
	* Returns the messageparticipants_id of this messages_mparticipants.
	*
	* @return the messageparticipants_id of this messages_mparticipants
	*/
	@Override
	public long getMessageparticipants_id() {
		return _messages_mparticipants.getMessageparticipants_id();
	}

	/**
	* Sets the messageparticipants_id of this messages_mparticipants.
	*
	* @param messageparticipants_id the messageparticipants_id of this messages_mparticipants
	*/
	@Override
	public void setMessageparticipants_id(long messageparticipants_id) {
		_messages_mparticipants.setMessageparticipants_id(messageparticipants_id);
	}

	@Override
	public boolean isNew() {
		return _messages_mparticipants.isNew();
	}

	@Override
	public void setNew(boolean n) {
		_messages_mparticipants.setNew(n);
	}

	@Override
	public boolean isCachedModel() {
		return _messages_mparticipants.isCachedModel();
	}

	@Override
	public void setCachedModel(boolean cachedModel) {
		_messages_mparticipants.setCachedModel(cachedModel);
	}

	@Override
	public boolean isEscapedModel() {
		return _messages_mparticipants.isEscapedModel();
	}

	@Override
	public java.io.Serializable getPrimaryKeyObj() {
		return _messages_mparticipants.getPrimaryKeyObj();
	}

	@Override
	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_messages_mparticipants.setPrimaryKeyObj(primaryKeyObj);
	}

	@Override
	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _messages_mparticipants.getExpandoBridge();
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.model.BaseModel<?> baseModel) {
		_messages_mparticipants.setExpandoBridgeAttributes(baseModel);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
		_messages_mparticipants.setExpandoBridgeAttributes(expandoBridge);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_messages_mparticipants.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new messages_mparticipantsWrapper((messages_mparticipants)_messages_mparticipants.clone());
	}

	@Override
	public int compareTo(
		de.hsmannheim.pepa.patientenportal.apanwep.model.messages_mparticipants messages_mparticipants) {
		return _messages_mparticipants.compareTo(messages_mparticipants);
	}

	@Override
	public int hashCode() {
		return _messages_mparticipants.hashCode();
	}

	@Override
	public com.liferay.portal.model.CacheModel<de.hsmannheim.pepa.patientenportal.apanwep.model.messages_mparticipants> toCacheModel() {
		return _messages_mparticipants.toCacheModel();
	}

	@Override
	public de.hsmannheim.pepa.patientenportal.apanwep.model.messages_mparticipants toEscapedModel() {
		return new messages_mparticipantsWrapper(_messages_mparticipants.toEscapedModel());
	}

	@Override
	public de.hsmannheim.pepa.patientenportal.apanwep.model.messages_mparticipants toUnescapedModel() {
		return new messages_mparticipantsWrapper(_messages_mparticipants.toUnescapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _messages_mparticipants.toString();
	}

	@Override
	public java.lang.String toXmlString() {
		return _messages_mparticipants.toXmlString();
	}

	@Override
	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_messages_mparticipants.persist();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}

		if (!(obj instanceof messages_mparticipantsWrapper)) {
			return false;
		}

		messages_mparticipantsWrapper messages_mparticipantsWrapper = (messages_mparticipantsWrapper)obj;

		if (Validator.equals(_messages_mparticipants,
					messages_mparticipantsWrapper._messages_mparticipants)) {
			return true;
		}

		return false;
	}

	/**
	 * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
	 */
	public messages_mparticipants getWrappedmessages_mparticipants() {
		return _messages_mparticipants;
	}

	@Override
	public messages_mparticipants getWrappedModel() {
		return _messages_mparticipants;
	}

	@Override
	public void resetOriginalValues() {
		_messages_mparticipants.resetOriginalValues();
	}

	private messages_mparticipants _messages_mparticipants;
}